package org.yxt.springcloud.service.impl;

import org.springframework.stereotype.Component;
import org.yxt.springcloud.entities.CommonResult;
import org.yxt.springcloud.service.PaymentService;

/**
 * 服务降级
 */
@Component
public class PaymentServiceFallBackImpl implements PaymentService {

    @Override
    public CommonResult getFallBackVal(int number) {
        return new CommonResult(0, "统一的sentinel使用openFeign全局的服务降级");
    }
}
